package com.zp.self.module.level_1_问道.II_集合问题;

import org.junit.Test;

import java.util.*;

/**
 * @author ：ZengPeng
 * @date ：Created 2022/5/30 20:32
 * @description : 查看HashMap的源码
 */
public class II_3_HashSet_HashMap {

    @Test
    public void iSee(){
        HashMap<String,String> hashMap  = new HashMap<>();
        Set<Map.Entry<String, String>> entries = hashMap.entrySet();
        Iterator<Map.Entry<String, String>> iterator = entries.iterator();


        HashSet<String> hashSet  = new HashSet<>();
        hashSet.add(null);
        System.out.println(hashSet.size());

        System.out.println("卧槽".hashCode());
        System.out.println("卧槽".hashCode());
        System.out.println("卧槽".hashCode()>>16);

    }


}
